package com.freight.tws.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.freight.common.core.annotation.Excel;
import com.freight.common.core.web.domain.MyPlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 订单常用发/收货方地址对象 tws_order_address
 * 
 * @author ruoyi
 * @date 2023-05-05
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tws_order_address")
public class OrderAddress extends MyPlusEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 类型 1发货地 2收货地 */
    @Excel(name = "类型")
    private String type;

    /** 发/收货人名称 */
    @Excel(name = "发/收货人名称")
    private String name;

    /** 发/收货人统一社会信用代码或个人证件号 */
    @Excel(name = "发/收货人统一社会信用代码或个人证件号")
    private String idCard;

    /** 发/收货人联系电话 */
    @Excel(name = "发/收货人联系电话")
    private String linkTel;

    /** 发/收货地址 */
    @Excel(name = "发/收货地址")
    private String address;

    /** 发/收货地点的国家行政区划代码或国别代码 */
    @Excel(name = "发/收货地点的国家行政区划代码或国别代码")
    private String cityCode;

    /** 发/收货地点位置经度 */
    @Excel(name = "发/收货地点位置经度")
    private String longitude;

    /** 发/收货地点位置纬度 */
    @Excel(name = "发/收货地点位置纬度")
    private String latitude;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String tenantId;

}
